import axios from 'axios'

export const getBreathLogs = (startTime = new Date(0).getTime(), endTime = Date.now(), deviceId) => {
	console.log('getBreathLogs', new Date(startTime), new Date(endTime))
	return axios.get('/demo/hospital/breath/' + deviceId, { params: { startTime, endTime } })
		.then((response) => Promise.resolve(response.data.result))
}
